package com.yunfeng.supercall.bean;

import android.os.Parcel;

public class PhoneContactsBean extends SuperFriendsBean {

	private boolean superNum;
	private boolean isSuper;
	private String group;
	private String contactID;
	public String getGroup() {
		return group;
	}

	public void setGroup(String group) {
		this.group = group;
	}

	public boolean isSuper() {
		return isSuper;
	}

	public void setSuper(boolean isSuper) {
		this.isSuper = isSuper;
	}

	public boolean isSuperNum() {
		return superNum;
	}

	public void setSuperNum(boolean superNum) {
		this.superNum = superNum;
	}

	public String getContactID() {
		return contactID;
	}

	public void setContactID(String contactID) {
		this.contactID = contactID;
	}

	public static final Creator<PhoneContactsBean> CREATOR = new Creator<PhoneContactsBean>() {

		@Override
		public PhoneContactsBean[] newArray(int size) {
			// TODO Auto-generated method stub
			return new PhoneContactsBean[size];
		}

		@Override
		public PhoneContactsBean createFromParcel(Parcel source) {
			// TODO Auto-generated method stub
			return new PhoneContactsBean(source);
		}
	};

	public PhoneContactsBean() {
		super();
		// TODO Auto-generated constructor stub
	}

	public PhoneContactsBean(Parcel parcel) {
		super(parcel);
		superNum = parcel.readInt() == 0;
		// TODO Auto-generated constructor stub
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		// TODO Auto-generated method stub
		super.writeToParcel(dest, flags);
		dest.writeInt(superNum ? 0 : 1);
	}

	@Override
	public boolean equals(Object o) {
		// TODO Auto-generated method stub
		if (o instanceof SuperFriendsBean) {
			SuperFriendsBean contacts = (SuperFriendsBean) o;
			return contacts.getPhone().equals(getPhone());
		}
		return super.equals(o);
	}

	// @Override
	// public String getNick_name() {
	// // TODO Auto-generated method stub
	// return getReal_name();
	// }
}
